package com.mimosa.common.attachment;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mimosa.common.dao.HibernateDao;
import com.mimosa.common.service.CommonService;

@Service
@Transactional
public class TAttachmentService extends CommonService<TAttachment, String> {

	Logger logger = LoggerFactory.getLogger(getClass());
	
	public TAttachment loadEntity(String id) {
		TAttachment a = this.tAttachmentDao.findUniqueBy("id", id);
		return a;
	}
	
	@Autowired
	private TAttachmentDao tAttachmentDao;

	@Override
	protected HibernateDao<TAttachment, String> getHibernateDao() {
		return this.tAttachmentDao;
	}
}